//
//  RecommendViewController.h
//  Happy Kitchen
//
//  Created by mac_chen on 15/3/7.
//  Copyright (c) 2015年 mac_chen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RecommendTableViewCell.h"
#import "RecommendDetailViewController.h"
#import "GetAFN.h"
#import "Recommend.h"
#import "UIImageView+WebCache.h"
#import "MJRefresh.h"
#import "RecommendContainerView.h"
#import "ImageTools.h"
#import "ScrollViewDetailViewController.h"
#import "MBProgressHUD.h"


// 通过代理协议将下标传给DetailScrollView
//@protocol pushIndexDelegate <NSObject>
//
//- (void)pushIndexAction:(NSInteger)index;
//
//@end


@interface RecommendViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, ContainerDelegate, pushDelegate, MBProgressHUDDelegate>


//@property (nonatomic, assign) id <pushIndexDelegate> svPushIndexDelegate;


@property (nonatomic, strong) MBProgressHUD *HUD;




@property (nonatomic, strong)NSMutableArray *myRecommendArray;

@property (nonatomic, strong)NSMutableDictionary *myRecommendDic;

@property (nonatomic, strong)UITableView *tableView;

@property (nonatomic, assign)BOOL isUpLoading;//标记上拉操作还是下拉操作,yes为上拉

@property (nonatomic, assign)NSInteger nextCursor;//记录下一页

@property (nonatomic, assign) NSInteger index;

@property (nonatomic, strong) NSTimer *timer;



@property (nonatomic, strong)UIPageControl *pageControl;
@property (nonatomic, strong)RecommendContainerView *recommendContainerV;






@end
